package com.shadow.study.logback;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("logback")
public class LController {

    private static final Logger LOGGER = LoggerFactory.getLogger(LController.class);

    @GetMapping("test1")
    public void test1() {
        log.debug("test1 Slf4j");
        log.info("test1 Slf4j");
        LOGGER.debug("test1 Logback");
        LOGGER.info("test1 Logback");
        System.out.println("test1 sout");
    }
}
